package com.itheima.stock.common.domain;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

//定义封装线程池参数的对象
@ConfigurationProperties(prefix = "task.pool")
@Data
public class TaskThreadPoolInfo {
    //核心线程数
    private Integer corePoolSize;
    //最大线程数
    private Integer maxPoolSize;
    //超过核心线程数的线程空闲时最大存活时间
    private Integer keepAliveSeconds;
    //任务队列
    private Integer queueCapacity;
}
